package com.neutech.neupha.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neutech.neupha.service.ConstantItemService;
import com.neutech.po.Constantitem;

@RestController
@RequestMapping("/constantItem")
public class ConstantItemController {
	@Autowired
	ConstantItemService constantItemService;
	
	@RequestMapping("/getConstantItemByTypeId")
	public List<Map<String, Object>> getConstantItemByTypeId(String typeId){
//		System.out.println(typeId);
		List<Map<String, Object>> list = constantItemService.getConstantItemByTypeId(typeId);
		return list;
	}

}
